Skip to content

Conversation

@featheredtoast
Copy link
Member

If permissions of the initial data directory get changed, the install script is unable to reset the permissions to the expected user.

The intent of the chown command is to ensure the permissions of the database and run directory are consistent and known. This allows it to do that on an existing data directory where this is more likely to occur.

This uses a more consistent find command by moving chown command under exec Do not rely on a file glob which can error on too many files.

If permissions of the initial data directory get changed, the install script is
unable to reset the permissions to the expected user.

The intent of the chown command is to ensure the permissions of the database and
run directory are consistent and known. This allows it to do that on an existing
data directory where this is more likely to occur.

This uses a more consistent find command by moving chown command under exec
Do not rely on a file glob which can error on too many files.
@pfaffman
Copy link
Contributor

pfaffman commented Jul 7, 2025

This is great. I've had to do this several times myself on upgrades from a very old container and have helped several people do it on meta.

Thanks!

@featheredtoast featheredtoast merged commit a382cb1 into main Jul 7, 2025
5 checks passed
@featheredtoast featheredtoast deleted the fix-update-postgres-chown branch July 7, 2025 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants